-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use local copy of RunPolicy by MPI-operator #513
Conversation
Steps performed: - copy the `RunPolicy` from common to `types.go` - fix compilation errors by using the local RunPolicy definition - run `make generate` - run `make all` - regenerate openapi_generated.go by `./hack/python-sdk/gen-sdk.sh` (with commented out rollback)
/assign @tenzen-y |
@alculquicondor please review. |
pkg/apis/kubeflow/v2beta1/types.go
Outdated
type RunPolicy struct { | ||
// CleanPodPolicy defines the policy to kill pods after the job completes. | ||
// Default to Running. | ||
CleanPodPolicy *common.CleanPodPolicy `json:"cleanPodPolicy,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy the CleanPodPolicy
from kubeflow/common to this repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it wasn't clear to me from the so far discussions so did it with minimal changes required to place the suspend field, but let me update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be better to copy all types, and members to this repo since moving only part of those might make double management.
cc: @alculquicondor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copied, PTAL at the last commit.
pkg/apis/kubeflow/v2beta1/types.go
Outdated
|
||
// SchedulingPolicy defines the policy related to scheduling, e.g. gang-scheduling | ||
// +optional | ||
SchedulingPolicy *common.SchedulingPolicy `json:"schedulingPolicy,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you copy the SchedulingPolicy
from kubeflow/common to this repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, about to copy too.
ce37edd
to
44db325
Compare
/assign @alculquicondor |
@terrytangyuan Can you approve CI? |
/ok-to-test EDIT: no, it didn't work |
Yes, we can not start CI by prow command. Repository admins need to approve CI manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: terrytangyuan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mimowo Thanks!
/lgtm
/assign @alculquicondor
@alculquicondor please complete the review and cancel the hold if it looks good so I can rebase the other PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/hold cancel |
/assign @terrytangyuan |
This is a preparatory commit to add
suspend
field toRunPolicy
in #511Steps performed:
RunPolicy
from common totypes.go
make generate
make all
./hack/python-sdk/gen-sdk.sh
(with commented out rollback)